import { defineStore } from 'pinia'
import  {
    tableRte
} from '../api/mock/base/risk-qi-ta.js'

export const useResultQita = defineStore('result-base-risk-qi-ta', {
    state: () => {
        return {
            count: 10,
            name: 'xx',
            tableRte
        }
    },
    getters: {
        doubleCount: (state) => state.count * 2,
        doublePlusOne: (state)=>{
            return state.doubleCount + '-ss'
        }
    },
    actions:{
        increment() {
            this.count++
        },
        asyncIncrement() {
            setTimeout(() => this.count++, 1000)
        },
        async insertPost(data){
            // 可以做异步
            // await doAjaxRequest(data);
            // this.name = data;
        },
    }
})
